//
//  jxsEditTaskDetailViewController.h
//  ToDoList
//
// This code file is apart of project "iPhone-ToDo-List" 
// (http://code.google.com/p/iphone-todo-list/)
//
// Copyright (c) 2009 Frank Villasenor
//
// Distributed under the terms of the Lesser GNU General Public License.
// A copy of the license should be with these files. If not, you 
// can retrieve a copy from http://www.gnu.org/licenses/lgpl-3.0.txt
// 

#import <UIKit/UIKit.h>
#import "jxsDueDateReceiver.h"

@class tosuTask;
@class jxsSelectDueDateViewController;


@interface jxsEditTaskDetailViewController : UIViewController 
	<jxsDueDateReceiver>
{
	UITextField *titleTextField;
	UIButton *dueDateButton;
	UISegmentedControl *isCompletedSegControl;
	UITextView *notesTextView;
	UIButton *updateButton;
	
	tosuTask *taskToEdit;
	
	//
	// Property / Pointer to hold a reference to the selectDueDateViewController.
	jxsSelectDueDateViewController *selectDueDateViewController;
	
	//
	// Need to know if we are selecting the date
	// or if this is a new task to display...
	BOOL changingDueDate;
}

@property (nonatomic, retain) IBOutlet UITextField *titleTextField;
@property (nonatomic, retain) IBOutlet UIButton *dueDateButton;
@property (nonatomic, retain) IBOutlet UISegmentedControl *isCompletedSegControl;
@property (nonatomic, retain) IBOutlet UITextView *notesTextView;
@property (nonatomic, retain) IBOutlet UIButton *updateButton;

@property (retain) tosuTask *taskToEdit;
@property (retain) jxsSelectDueDateViewController *selectDueDateViewController;

- (void)setDueDateButtonTitle;
- (IBAction)showSetDueDateView:(id)sender;
- (IBAction)updateTask:(id)sender;
- (IBAction)sendKeyboardAway:(id)sender;

@end
